interface InterfaceA {
  title: string
}
interface InterfaceB {
  title: string
}
class ClassA {
  title: string
}
class ClassB {
  title: string
}


let a = <InterfaceA>{
  title: "helloA"
}

console.log("111");
console.log(typeof a);  //object
if (a instanceof Object) console.log("a is Object")  //true

//看做是一个value, InterfaceB是一个Type,instanceof 后面是一个value, type是编译器的东西,value,是一个具体的值.
// if(a instanceof InterfaceB) console.log("a is Object")  //